How to find the palindrome in java 8